package io.polly.common.constant;

/**
 * @author ldz
 * @version V1.0
 * @title: DynamicExecutorConstant
 * @description: TODO(用一句话描述该文件做什么)
 * @date: 2022/3/18 21:01
 */

public class DynamicExecutorConstant {

    public static final String DYNAMIC_EXECUTOR_PROPERTIES_PREFIX = "spring.dynamic.executor";

    public static final int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();

    public static final String DYNAMIC_EXECUTOR_ENABLED_PROP = DYNAMIC_EXECUTOR_PROPERTIES_PREFIX + ".enabled";

    public static final String DYNAMIC_EXECUTOR_NAME = "DynamicExecutor";
}
